﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ExpressionBuilder.CustomExtend
{

    public class TableClassInfo
    {
        /// <summary>
        /// TableAttribute的TableName值
        /// </summary>
        public string TableName { get; set; }

        /// <summary>
        /// 表类型
        /// </summary>
        public Type ClassType { get; set; }

        /// <summary>
        /// 类备注
        /// </summary>
        public string ClassSummary { get; set; }

        /// <summary>
        /// 属性信息
        /// </summary>
        public List<TablePropertyInfo> TablePropertyInfos { get; set; } = new List<TablePropertyInfo>();
    }

    /// <summary>
    /// 表属性信息
    /// </summary>
    public class TablePropertyInfo
    {
        /// <summary>
        /// 属性名称
        /// </summary>
        public string PropertyName { get; set; }

        /// <summary>
        /// 属性备注
        /// </summary>
        public string PropertySummary { get; set; }

        ///// <summary>
        ///// 属性类型
        ///// </summary>
        public Type PropertyType { get; set; }

        /// <summary>
        /// 属性类型名称
        /// </summary>
        public string PropertyTypeName { get; set; }
    }
}
